/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tsb.xml;

import java.io.FileWriter;
import java.io.IOException;
import org.jdom.output.XMLOutputter;

/**
 *
 * @author Luciano
 */
public class XMLmain {

    public static void main(String[] args) throws IOException{
        
        DocumentoXML diagrama = new DocumentoXML();
        FileWriter writer = new FileWriter("ArchivoDeSalida.xml");
        
        XMLOutputter xmlOutPutter = new XMLOutputter();

        try {
            xmlOutPutter.output(diagrama, writer);
            writer.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
